package com.situ.day6.homework;

public class IAlarmDemo {

	public static void main(String[] args) {
		MyDoor myDoor = new MyDoor();
		myDoor.open();
		myDoor.close();
		myDoor.alarm();
		
		AbstractDoor door = new MyDoor();
		door.close();
		door.open();
		
		IAlarm alarm = new MyDoor();
		alarm.alarm();
	}
}
